package clf.wajl.ui;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import java.util.ArrayList;

import clf.wajl.R;

/**
 * Created by s on 2017/9/19.
 */

public class AnswerPopMenu extends PopMenu {
	public AnswerPopMenu(Context context) {
		super(context);
	}

	@Override
	protected ListView findListView(View view) {
		return (ListView) view.findViewById(R.id.menu_answer_listview);
	}

	@Override
	protected View onCreateView(Context context) {
		View view = LayoutInflater.from(context).inflate(R.layout.menu_answer, null);
		return view;
	}

	@Override
	protected ArrayAdapter<Item> onCreateAdapter(Context context, ArrayList<Item> items) {
		return new ArrayAdapter<Item>(context, R.layout.item_menu_answer, items);
	}
}
